package com.jinsi.service.yrf.iml;
import com.jinsi.constant.YrfConstant;
import com.jinsi.mapper.yrf.FeedbackListMapper;
import com.jinsi.pojo.SyFeedbackList;
import com.jinsi.service.yrf.FeedbackListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class FeedbackListServiceImpl implements FeedbackListService {

    @Autowired
    private FeedbackListMapper mapper;


    @Override
    public List<SyFeedbackList> getAll(Integer sorw,SyFeedbackList syFeedbackList) {
        return mapper.getAll(sorw,syFeedbackList, YrfConstant.FEED_LIST_FILD);
    }

    @Override
    public int span1(Integer span1) {
        return mapper.span1(span1);
    }

    @Override
    public int span2(Integer span1) {
        return mapper.span2(span1);
    }

    @Override
    public void updListFild(Integer bid) {
        mapper.updListFild(bid,YrfConstant.FEED_LIST_FILDTWO);
    }
}
